import Vue from 'vue'
import App from './App3'
import btn from './components/el-button'
import dia from './components/dialog.vue'
Vue.component('el-button', btn)

// let dv = new Vue({
//   data: {
//     age: 1000
//   }
// })

// Vue.prototype.dv = dv
let DD = Vue.extend(dia)
/* 
  Vue.extend 是用来创造一个Vue的子类


*/
let dialog = new DD();
dialog.$mount('#dialog')
Vue.prototype.dialog = dialog
let vm = new Vue({
  render(h) {
    return h(App)
  },
  data() {
    return {
      type: 111
    }
  }

}).$mount('#app')
console.log(vm)